//
// Created by 莫吉米 on 16/8/9.
//

#ifndef IYOGO_CONFIG_H
#define IYOGO_CONFIG_H


class Config {
public:
    static string host;
    static string user;
    static string passwd;
    static string db;
    static unsigned int port;
public:
    Config(string path);
};

#ifdef IYOGO_MAIN
    const  string CONFIGPATH("/Users/Toudsour/Code/Work/Company/iyogo/Debug/config");
    string Config::host;
    string Config::user;
    string Config::passwd;
    string Config::db;
    unsigned int    Config::port;
    Config config(CONFIGPATH);
#endif


#endif //IYOGO_CONFIG_H
